package cn.com.infosec.ra.service.organ;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.com.infosec.ra.dao.organdao.OrganDao;
import cn.com.infosec.ra.entity.OrganEntity;

@Service
public class OrganServiceImpl implements OrganService {
	
	@Resource
	private OrganDao organDao;
	
	@Override
	public List<OrganEntity> getOrganList() {
		return organDao.getOrganList();
	}

	@Override
	public OrganEntity getOrganById(int id) {
		return organDao.getOrganById(id);
	}

	@Override
	public void updateOrganById(OrganEntity organ) {
		organDao.updateOrganById(organ);
	}

	@Override
	public void saveOrgan(OrganEntity organ) {
		organDao.saveOrgan(organ);
	}

	@Override
	public void deleteOrganById(int id) {
		organDao.deleteOrganById(id);
	}

	@Override
	public void saveOrganOracle(OrganEntity organ) {
		organDao.saveOrganOracle(organ);
		
	}


}
